Welcome![Sign In][Sign Up]
Location:
Search - ping socket

Search list

[WinSock-NDISRAWping

Description: 使用原始套接字实现ping程序,这个程序比较简单,要实现统计功能,还需完善。-original Socket ping procedure, which is relatively simple to achieve statistical functions, need to be enhanced.
Platform: | Size: 3481 | Author: 熊波 | Hits:

[WinSock-NDISRAWpingping

Description: 这个程序实现了在原始套接字下的Ping程序,具有统计功能,已经通过调试,欢迎下载。-the process of the realization of the original socket Ping procedures, with statistical functions, through debugging, welcome to download.
Platform: | Size: 2642 | Author: 熊波 | Hits:

[TCP/IP stackWin32_Ping

Description: This a basic multi-threaded ping utility using a raw socket. Take a look at the screenshot for the feature list. This code is not 100% mine. It was adapted from code on the internet (Found in several places so not sure of the author). It has been modified alot though. -This a basic multi-threaded ping utilit y using a raw socket. Take a look at the screensho not for the feature list. This code is not 100% mine . It was adapted from code on the internet (Found in several places so not sure of the author). It h as been modified a lot though.
Platform: | Size: 14006 | Author: 微环境 | Hits:

[OtherWinPing

Description: 一个Windows ping源码,用VC++6.0编写,socket 入门编程-a ping-source Windows, VC 6.0 preparation, induction socket programming
Platform: | Size: 52768 | Author: 赵恩良 | Hits:

[WinSock-NDISWinPing

Description: MFC库,VC++开发环境,Socket网络编程接口,实现网络性能测试Ping
Platform: | Size: 257176 | Author: GYK | Hits:

[TCP/IP stackping_src

Description: 一个在Windows的Dos命令行中利用ICMP 与 原始Socket接口对指定IP地址进行Ping的程序. Ping program using ICMP and RAW Sockets
Platform: | Size: 5138 | Author: zjjjjz | Hits:

[TCP/IP stackPinging

Description: Ping程序的简单实现.用RAW形式的Socket,用到了IP协议和ICMP协议
Platform: | Size: 9941 | Author: gto9999 | Hits:

[Technology Managementcb_pings

Description: 通过RAW SOCKET可以时间延迟时间的计算,具体怎么实现ping,
Platform: | Size: 112096 | Author: 吴业波 | Hits:

[WinSock-NDISNetServer

Description: 通过实现网络服务器的搜索掌握Socket的使用通过实现Ping连通性掌握数据链路层的基本传输过程
Platform: | Size: 3756 | Author: jzhao | Hits:

[Other resourceIP

Description: 移植到嵌入式系统的TCPIP协议源码,源码内有详细中文注解。 已实现的功能: 支持TCP, UDP, IP, ICMP, ARP, ETHERNET等协议;兼容BSD标准的Socket API接口函数库;ICMP实现PING的功能和UDP无效端口返回;支持TCP的流控制和超时重传;支持TCP主动连接和被动连接; 􀁺 支持在多任务中建立多个不同的TCP连接,支持各连接同时收发数据; 􀁺 提供WebSever和UDP服务器范例。 还没实现功能: 􀁺 IP报的处理不支持分段 在多个网络接口的应用是两个网络间的最大报大小要基本相等。 􀁺 ICMP协议还不是非常完整 目前ICMP协议只支持PING的功能和UDP无效端口返回。 􀁺 TCP协议不支持紧急数据 这一版本的ZLG/IP不对TCP传输中的紧急数据报进行处理。 􀁺 不支持IGMP协议 这一版本的ZLG/IP不支持IP组播和广播。 􀁺 不支持Socket API发送函数发送大于PMTU 用Socket API发送函数发送数据时,数据长度不可大于一个TCP或UDP报有效数据的长度。
Platform: | Size: 1683185 | Author: 谭剑鸣 | Hits:

[Develop ToolsMultiPing

Description: 通过用SOCKET发包来实现PING命令,可以同时检查多个IP的网格连通情况。并形成对应的日志以便查看。
Platform: | Size: 21149 | Author: 菲飞 | Hits:

[TCP/IP stacktcp_ip_design_report.doc

Description: 本文件介绍了一个TCP/IP的功能,设计要点,本协议栈实现的组件包括ARP,I CMP(PING),UDP,TCP。并设计了一个与SOCKET API兼容的标准接口。 TCP/IP协议栈背景 TCP/IP是使用最为广泛的INTERNET通信协议,几乎所有的桌面操作系统如Windows,Redhat Linux都支持TCP/IP协议。为了实现嵌入式系统与PC机的组网通信,就必须在嵌入式系统上实现复杂的TCP/IP协议栈,通过实现了TCP/IP协议栈,就可以方便的实现嵌入式系统与主流桌面操作系统的通信和资源共享,这也是作者编写TCP/IP协议栈的由衷。
Platform: | Size: 15434 | Author: 6756 | Hits:

[Other resourceEmbbeded_tcp_ip_user_guide

Description: 嵌入式TCP/IP协议栈说明书下载-- 技术说明: 1)用户应用协议栈则需要编写以太网的数据报收发驱动,就可以使用协议栈提供的标准SOCKET API,完成服务器和客户端应用程序的开发。 2)协议栈运行于非操作系统的环境下,因此它的运行速度与一般采用多任务操作系统的TCP/IP协议,速度相对说来要快。 3)协议栈完成的功能包括ARP,IP,ICMP(ping),TCP,UDP,暂不支持IGMP,RARP。 4)协议栈采用C代码编写,可方便的移植于各种单片机平台。 5)协议栈在ARM7+RTL8019硬件环境下测试,并建立了FTP服务器和WEB服务器,性能稳定。 6)协议栈建立的FTP服务器和WEB服务器与Internet Explorer浏览器和ftp.exe相互兼容。 7)协议栈每一个SOCKET上建了数据缓冲队列(数据结构),用于接收SOCKET的并发数据,实现多SOCKET的并发数据报处理,可同时运行FTP服务器和WEB服务器。 8)协议栈实现了ACK的延时答应(200ms),支持TCP多包发送和接收,但未支持TCP数据报的失序处理,因此适合局域网内使用。 诚邀与您合作,QQ:292942278
Platform: | Size: 11406 | Author: 6756 | Hits:

[WinSock-NDISrawsocket_ping

Description: 用Raw Socket实现ping的程序源代码-with Raw Socket ping of source code
Platform: | Size: 2149 | Author: 赵海峰 | Hits:

[Communication实例63

Description: 本例介绍怎样建立简单的程序,实现类似于系统ping的功能。通过这个例子,您不仅能够学会如何建立一个类似系统\"ping\"的程序,更主要的是对.NET环境下进行socket级网络编程有初步的认识。-the cases presented on how to establish a simple procedure, similar to the system to achieve ping function. Through this example, you can learn not only how to establish a similar system "ping" of the procedure, the main yes right.NET environment for socket-level network programming a preliminary understanding.
Platform: | Size: 711785 | Author: 和平鸽 | Hits:

[Internet-Networkpingsource

Description: VC实现PING的各个参数,是学习SOCKET编程的 不错参考程序,代码清晰,可读性好-VC PING various parameters, is learning Socket Programming good reference program, code clear and readable
Platform: | Size: 1768477 | Author: 王云 | Hits:

[Internet-Network一个判断远程主机存活程序代码

Description: 一个判断远程主机存活程序代码(ping) #include #include #include #include #include "winsock.h" #pragma comment(lib,"Ws2_32"); #define SEND_SIZE 32 #define PACKET_SIZE 4096 #define ICMP_ECHO 8 #define ICMP_ECHOREPLY 0 struct icmp { unsigned char icmp_type; unsigned char icmp_code; unsigned short icmp_cksum; unsigned short icmp_id; unsigned short icmp_seq; unsigned long icmp_data; }; struct ip { unsigned char ip_hl:4; unsigned char ip_v:4; unsigned char ip_tos; unsigned short ip_len; unsigned short ip_id; unsigned short ip_off; unsigned char ip_ttl; unsigned char ip_p; unsigned short ip_sum; unsigned long ip_src; unsigned long ip_dst; }; unsigned char sendpacket[PACKET_SIZE]; unsigned char recvpacket[PACKET_SIZE]; struct sockaddr_in dest_addr; struct sockaddr_in from_addr; int sockfd; int pid; unsigned short cal_chksum(unsigned short *addr,int len); int pack(int pack_no); int unpack(unsigned char *buf,int len); void send_packet(void); void recv_packet(void); void main(int argc,char *argv[]) { struct hostent *host; struct protoent *protocol; WSADATA wsaData; int timeout=1000; int SEND_COUNT=4; int i; char *par_host; par_host=argv[argc-1]; //IP赋值 switch(argc) { case 2: break; case 3: if(strcmp(argv[1],"-t")==0) { SEND_COUNT=10000; break; } //fall through default: printf("usage: %s [-t] Host name or IP address\n",argv[0]); exit(1); } if(WSAStartup(0x1010,&wsaData)!=0) { printf("wsastartup error\n"); exit(1); } if( (protocol=getprotobyname("icmp") )==NULL) { printf("getprotobyname error\n"); exit(1); } /* printf("%s\n",protocol->p_name); printf("%s\n",protocol->p_aliases); printf("%d\n",protocol->p_proto); system("pause"); */ if( (sockfd=socket(AF_INET,SOCK_RAW,protocol->p_proto) )<0) { printf("socket error\n"); exit(1); } if(setsockopt(sockfd,SOL_SOCKET,SO_RCVTIMEO,(char*)&timeout,sizeof(timeout))h_length); //resolve address to hostname if(host=gethostbyaddr(host->h_addr,4,PF_INET)) par_host=host->h_name; // //printf("%s\n",par_host); // } else if( dest_addr.sin_addr.s_addr=inet_addr(par_host)==INADDR_NONE) { printf("Unkown host %s\n",par_host); exit(1); } pid=getpid(); /* printf("%d\n",pid); system("pause"); */ printf("Pinging %s [%s]: with %d bytes of data:\n\n",par_host,inet_ntoa(dest_addr.sin_addr),SEND_SIZE); for(i=0;i1) { sum+=*w++; nleft-=2; } if( nleft==1) { *(unsigned char *)(&answer)=*(unsigned char *)w; sum+=answer; } sum=(sum>>16)+(sum&0xffff); sum+=(sum>>16); answer=~sum; return answer; } //打包 int pack(int pack_no) { int packsize; struct icmp *icmp; packsize=8+SEND_SIZE; icmp=(struct icmp*)sendpacket; icmp->icmp_type=ICMP_ECHO; icmp->icmp_code=0; icmp->icmp_cksum=0; icmp->icmp_seq=pack_no; icmp->icmp_id=pid; icmp->icmp_data=GetTickCount(); icmp->icmp_cksum=cal_chksum( (unsigned short *)icmp,packsize); /*校验算法*/ return packsize; } //解包 int unpack(unsigned char *buf,int len) { struct ip *ip; struct icmp *icmp; double rtt; int iphdrlen; ip=(struct ip *)buf; iphdrlen=ip->ip_hl*4; icmp=(struct icmp *)(buf+iphdrlen); if( (icmp->icmp_type==ICMP_ECHOREPLY) && (icmp->icmp_id==pid) ) { len=len-iphdrlen-8; rtt=GetTickCount()-icmp->icmp_data; printf("Reply from %s: bytes=%d time=%.0fms TTL=%d icmp_seq=%u\n", inet_ntoa(from_addr.sin_addr), len, rtt, ip->ip_ttl, icmp->icmp_seq); return 1; } return 0; } //发送 void send_packet() { int packetsize; static int pack_no=0; packetsize=pack(pack_no++); if( sendto(sockfd,(char *)sendpacket,packetsize,0,(struct sockaddr *)&dest_addr,sizeof(dest_addr) )=0) success=unpack(recvpacket,n); else if (WSAGetLastError() == WSAETIMEDOUT) { printf("Request timed out.\n"); return; } }while(!success); } UID5380 帖子239 精华0 积分1289 阅读权限40 来自软件学院 在线时间81 小时 注册时间2006-5-22 最后登录2007-2-24 查看详细资料 TOP
Platform: | Size: 5881 | Author: shuiyuan313 | Hits:

[Internet-NetworkSocks_src

Description: socket编程 The SOCKS-firewall is a program which is capable of secured proxying being compatible with various authentcation levels. However, as described in RFC 1928, there is currently only basic. In this conspect we will try to compose the SOCKS model for proper implementation of firewall architecture design for both current standard and further developing-SOCKS-firewall is a program w hich is capable of being secured proxying compa tible with various authentcation levels. Howe ver, as described in RFC 1928. there is currently only basic. In this conspect we will try to compose the proper model for SOCKS implementation of firewall architecture desi gn for both current standard and further develo ping
Platform: | Size: 12288 | Author: 中一民 | Hits:

[Internet-NetworkRAWping

Description: 使用原始套接字实现ping程序,这个程序比较简单,要实现统计功能,还需完善。-original Socket ping procedure, which is relatively simple to achieve statistical functions, need to be enhanced.
Platform: | Size: 3072 | Author: 熊波 | Hits:

[Technology Managementcb_pings

Description: 通过RAW SOCKET可以时间延迟时间的计算,具体怎么实现ping,-RAW SOCKET through time-delay time can be calculated, the specific realize how ping,
Platform: | Size: 111616 | Author: | Hits:
« 1 2 3 4 56 7 »

CodeBus www.codebus.net